package com.example.web.demos.dao;

import com.example.web.demos.domain.entity.Config;
import org.springframework.data.jdbc.repository.query.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConfigRepository extends CrudRepository<Config, String> {

    @Query(
            "SELECT prefix FROM config"
    )
    List<String> getPrefixs();

}
